from django.views.generic import CreateView
from django.contrib.auth.mixins import LoginRequiredMixin

from .models import ReleaseInfo


class DraftCreateView(LoginRequiredMixin, CreateView):
    model = ReleaseInfo
    template_name = "draft/draft_add.html"
    fields = ['product', 'release_version', 'release_remarks', 'update_front',
              'update_back', 'fixed_front', 'fixed_back', 'problems', 'hash_front',
              'hash_back']
